package com.dmcloud.system.feign;

import com.dmcloud.common.util.reponse.ResultMessage;
import com.dmcloud.system.dto.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by xiaodao
 * date: 2019/11/2
 */

@FeignClient(value = "dm-system")
public interface IUserClient {
    /**
     * 获取用户信息和权限
     * @param account
     * @return userinfo
     */
    @GetMapping("/user-fegin/info/{account}")
    ResultMessage<UserInfo> getUserInfo(@PathVariable("account")String account);
}
